//
//  BNHomeDetailSectionHeaderView.m
//  BNCodeGuide
//
//  Created by Mac on 2021/5/22.
//  Copyright © 2021 kevin007. All rights reserved.
//

#import "BNHomeDetailSectionHeaderView.h"
#import "XBCategories.h"

@implementation BNHomeDetailSectionHeaderView
- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.titleLabel.textColor = [UIColor colorFromHexCode:@"#333333"];
    self.bgView.backgroundColor = [UIColor brownColor];
}

- (void)setFrame:(CGRect)frame {
    CGRect rect = frame;
    rect.origin.x += 15;
    rect.size.width -= rect.origin.x * 2;
    
    super.frame = rect;
}

- (CGRect)frame {
    return [super frame];
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    [self setCornerRadiusWithRadius:10 corner:UIRectCornerTopLeft|UIRectCornerTopRight];
}
@end
